import { getEnv } from "@/utils";

export const ENV = getEnv();

let BASE_URL = "";
let BASE_ADMIN_URL = "";
let PUSH_RTMP_URL = "";

console.warn("env:" + ENV);
switch (ENV) {
  case "dev":
    // BASE_URL = "http://127.0.0.1:5000";
    BASE_URL = "http://110.41.132.112";
    break;
  case "test":
    BASE_URL = "http://110.41.132.112";
    break;
  case "pre":
    BASE_URL = "http://110.41.132.112";
    break;
  default:
    BASE_URL = "http://110.41.132.112";
    break;
}

const baseUrl = {
  BASE_URL,
  BASE_ADMIN_URL,
  PUSH_RTMP_URL
};

window.baseUrl = baseUrl;

export { BASE_URL, BASE_ADMIN_URL, PUSH_RTMP_URL };
